Espressif Systems /ESP32-C6 /MCPWM0 /CAP_CH0_CFG

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CAP_CH0_CFG

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (CAP0_EN)CAP0_EN 0CAP0_MODE 0CAP0_PRESCALE0 (CAP0_IN_INVERT)CAP0_IN_INVERT 0 (CAP0_SW)CAP0_SW

Description

Capture channel 0 configuration and enable

Fields

CAP0_EN

When set, capture on channel 0 is enabled

CAP0_MODE

Edge of capture on channel 0 after prescaling. When bit0 is set to 1: enable capture on the negative edge, When bit1 is set to 1: enable capture on the positive edge.

CAP0_PRESCALE

Value of prescaling on possitive edge of CAP0. Prescale value = PWM_CAP0_PRESCALE + 1

CAP0_IN_INVERT

when set, CAP0 form GPIO matrix is inverted before prescale

CAP0_SW

Write 1 will trigger a software forced capture on channel 0

Links

() ()